﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>父页面给子页面传递参数</title>
</head>
<body>
    <script type="text/javascript">
        function OnPageOfficeCtrlInit() {
            pageofficectrl.CustomToolbar = false; //隐藏自定义工具栏
        }
        function AfterDocumentOpened() {
            var userName = pageofficectrl.WindowParams;
            document.getElementById("userName").value = userName;
        }
    </script>
    <div>
        <font color="red">父页面传递过来的参数:</font><input type="text" id="userName" name="userName" />
    </div>
    <div style="width:auto; height:95vh;">
        @Html.Raw(ViewBag.poCtrl)
    </div>
</body>
</html>